<%@ page import="java.util.*" %>

<jsp:useBean id="hardwareTest" class="se2.HardwareTestResult" scope="request"/>
<jsp:setProperty name="hardwareTest" property="*"/>

<html>

	<head>
		<link rel="stylesheet" href="default.css" type="text/css" media="screen">
	</head>
	
	<body>
		<form id="hardwareTestForm" name="hardwareTestForm" method="post" action="hardwareTest.jsp">
			<input type="hidden" id="ipAddress" name="ipAddress" value="<%=hardwareTest.getIpAddress()%>">
	
<% 
	if (hardwareTest.runHardwareTest())
	{
		hardwareTest.setResults("PASS");
%>
		<input type="hidden" id="results" name="results" value="PASS">
		<script type="text/javascript">
			document.hardwareTestForm.submit();
		</script>
		
	
<%
	}
	else
	{
	
		hardwareTest.setResults("FAIL");
%>
		<input type="hidden" id="results" name="results" value="FAIL">
		<script type="text/javascript">
			document.hardwareTestForm.submit();
		</script>

	
<%
	}
%>		
		</form>
	</body>
</html>